<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateMemberRightsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('member_rights', function (Blueprint $table) {
            $table->id()->comment('会员权益表');
            $table->string('right_type',32)->comment('权益类别' );
            $table->string('right_title',255)->comment('权益名称');
            $table->string('show_title',255)->comment('显示权益名称');
            $table->string('image',255)->comment('权益图标');
            $table->string('explain',255)->comment('权益介绍');
            $table->integer('number')->comment('规则数字');
            $table->integer('sort')->comment('排序倒序');
            $table->tinyInteger('status')->default(1)->comment('状态 0禁用,1启用');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('member_rights');
    }
}
